/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict-local
 * @format
 */

'use strict';

const PixelRatio = require('../../Utilities/PixelRatio');

const scale = PixelRatio.get();

/**
 * We use inline images for YellowBox in order to avoid display latency due to
 * resource contention with symbolicating stack traces.
 *
 * The following steps were used to create these:
 *
 *   1. Download SVG files from: https://feathericons.com
 *   2. Rasterize SVG files to PNG files at 16dp, 36dp, and 48dp.
 *   3. Convert to Base64: https://www.google.com/search?q=base64+image+encoder
 *
 * @see https://github.com/feathericons/feather
 * @copyright 2013-2017 Cole Bemis
 * @license MIT
 */
const YellowBoxImageSource = {
  alertTriangle: ((scale > 2
    ? ''
    : scale > 1
    ? ''
    : ''): string),
  check: ((scale > 2
    ? ''
    : scale > 1
    ? ''
    : ''): string),
  chevronLeft: ((scale > 2
    ? ''
    : scale > 1
    ? ''
    : ''): string),
  chevronRight: ((scale > 2
    ? ''
    : scale > 1
    ? ''
    : ''): string),
  loader: ((scale > 2
    ? ''
    : scale > 1
    ? ''
    : ''): string),
};

module.exports = YellowBoxImageSource;
